JavaScript

mapControl.removeMarker Method

Syntax

mapObj.removeMarker(markerName);

Arguments

markerNamestring

The name of the marker to remove.

Description

Remove a marker from a Map Control.

Example

//get a pointer to the map control for variable 'mymap1'
var mapObj = {dialog.object}.getControl('mymap1');

if (mapObj) {
    // remove the marker 'myMarker1'
    mapObj.removeMarker('myMarker1');
}